#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
图形界面启动入口
启动个人剂量监测报告批量提取工具的GUI界面
"""

import sys
import os

# 添加当前目录到Python路径
current_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, current_dir)

def main():
    """主启动函数"""
    try:
        from app.gui import main as gui_main
        print("正在启动个人剂量监测报告批量提取工具...")
        gui_main()
        
    except ImportError as e:
        print(f"导入错误: {e}")
        print("请确保已安装所需的依赖包:")
        print("pip install python-docx pandas openpyxl")
        input("按Enter键退出...")
        
    except Exception as e:
        print(f"启动错误: {e}")
        input("按Enter键退出...")


if __name__ == "__main__":
    main()
